#!/usr/bin/python
# -*- coding: UTF-8 -*-

#
# the sheet data
# @author Lee
#
class Class:
    #the config data classify
    _dataClassify = ""
    #the excel output name
    _outputName = ""
    #the line datas
    _lines = None

    #
    # the constructed process
    # @param [dataClassify] he config data classify
    # @param [outputName] the excel output name
    #
    def __init__(self, dataClassify, outputName):
        self._dataClassify = dataClassify
        self._outputName = outputName
        self._lines = []

    #
    # Gets the config data classify
    # @return the config data classify
    #
    def GetClassify(self):
        return self._dataClassify

    #
    # Gets the excel output name
    # @return the excel output name
    #
    def GetOutputName(self):
        return self._outputName

    #
    # Adds the line data
    # @param [lineData] the line data
    #
    def AddLineData(self, lineData):
        if self._lines != None and lineData != None:
            self._lines.append(lineData)
    
    #
    # Gets the line count
    # @return the line count
    #
    def GetLineCount(self):
        if None == self._lines:
            return 0
        
        lineCount = len(self._lines)
        return lineCount

    #
    # Gets the line data
    # @param [index] the specified index
    # @return the line data
    #
    def GetLineData(self, index):
        if None == self._lines:
            return None

        if index < 0 or index >= len(self._lines):
            return None

        lineData = self._lines[index]
        return lineData